<template>
  <view class="content">
    <view class="content_title">请上传营业执照照片</view>
    <view class="content_box">
      <view class="title_h1">营业执照照片</view>
      <view class="title_h2">要求：清晰彩色、需年检章齐全，当年注册除外</view>
        <AtImagePicker
          :files="files"
          :onChange="onChange"
          :showAddBtn="files.length == 0"
          :length="1"
          :multiple="false"
        />
    </view>
    <view class="input_item"></view>
    <view class="bottom_btn" @tap="next()">确定</view>
  </view>
</template>

<script>
import './submitImg.scss';
import Taro from '@tarojs/taro';
import UserAPI from "../../api/user.js"
export default {
  data() {
    return {
      files: [], // 上传的图片
      showDetail: false, // 显示详细信息
      detailData: {}, // 详细信息
    }
  },
  methods: {
    onChange(file){
      console.log(file)
      this.files = file;
    },
    async getData(){
      const res = {};
      this.detailData = res;
      this.showDetail = true;
    }
  }
}

</script>
